let timerarr = function () {
let week=["日","一","二","三","四","五","六",];
  let date = new Date().getDate();
  // let date=28
  let now = new Date()
  let nextMonth = new Date(now.getFullYear(), now.getMonth() + 1, 1);
  // 本月有多少天
  const yeartoday = new Date(nextMonth - 1).getDate();
  let arr = [];
  let weekarr=[];
  let first=1;
  let i=0;
  let j=0;
  let day= new Date().getDay();
  while(i<5){
    if(date+i>yeartoday){
      arr.push(first);
      i++;
      first++;
      continue;
    }
    arr.push(date+i);
    i++;
  }
  while(j<5){
    if(day>6){
      day=0;
    }
    weekarr.push(week[day]);
    day++;
    j++;
  }
  return {arr,weekarr};
}
module.exports = {
  timerarr
}